﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using AdmLaboratorios.DTO;

namespace AdmLaboratorios
{
    public partial class frmPartnerDetalle : Form
    {
        public PartnerDTO Partner { get; set; }

        public frmPartnerDetalle()
        {
            InitializeComponent();
        }

        private void frmPartnerDetalle_Load(object sender, EventArgs e)
        {
            FillProductFields();
        }

        private void FillProductFields()
        {
            txNombre.Text = Partner.Nombre;
            txTipo.Text = Partner.Tipo;
            txCUIT.Text = Partner.CUIT;
            txTelefonos.Text = Partner.Telefonos;
            txEmail.Text = Partner.Email;
            txDireccion.Text = Partner.Direccion;
            txCP.Text = Partner.CP;
            txLocalidad.Text = Partner.Localidad;
            txProvincia.Text = Partner.Provincia;
            txObservaciones.Text = Partner.Observaciones;
        }

        private void btCerrar_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void groupBox1_Enter(object sender, EventArgs e)
        {

        }
    }
}
